package ft.app.gtig.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Lob;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import com.haulmont.cuba.core.entity.StandardEntity;

@Table(name = "GTIG_WHITE_PAPER")
@Entity(name = "gtig$WhitePaper")
public class WhitePaper extends StandardEntity {
    private static final long serialVersionUID = 1865398516644281453L;

    @Column(name = "TITLE", nullable = false)
    protected String title;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "NEWSTIME", nullable = false)
    protected Date newstime;

    @Column(name = "SMALLTEXT", nullable = false, length = 1000)
    protected String smalltext;

    @Lob
    @Column(name = "NEWSTEXT", nullable = false)
    protected String newstext;


    @Column(name = "IMAGE", nullable = false, length = 333)
    protected String image;

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }


    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setNewstime(Date newstime) {
        this.newstime = newstime;
    }

    public Date getNewstime() {
        return newstime;
    }

    public void setSmalltext(String smalltext) {
        this.smalltext = smalltext;
    }

    public String getSmalltext() {
        return smalltext;
    }

    public void setNewstext(String newstext) {
        this.newstext = newstext;
    }

    public String getNewstext() {
        return newstext;
    }


}